<template>
  <swiper class="swiper" circular :duration="500" :current="currentIndex">
    <swiper-item
      v-for="componentName in myComponentsNames.login"
      :key="componentName"
    >
      <component :is="componentName"> </component>
    </swiper-item>
  </swiper>
</template>

<script setup>
import { myComponentsNames } from "@/components/globalComponents";
import { onLoad } from "@dcloudio/uni-app";
import { ref } from "vue";
// 接收props
const props = defineProps({});

const currentIndex = ref(0);

// 接收url参数
onLoad((option) => {
  currentIndex.value = option.index;
});
</script>

<style scoped lang="less">
.swiper {
  height: 100vh !important;
  bottom: 0 !important;
  padding: 0 !important;
}
</style>
